package edu.cmu.vlis.datamining.tools;


 import java.awt.*;

 import java.awt.event.*;
 import src.org.jgraph.graph.*;
 
import javax.swing.*;

import org.jgraph.JGraph;
 
public class DrawGraph  extends JFrame
implements ActionListener
{
    JGraph myGraph;
    JScrollPane scrollPane;
   
    DrawGraph(JGraph jgraph) 
    {
         myGraph = jgraph;
         scrollPane = new JScrollPane(myGraph);
        
         this.setTitle("First JGraph");
         WindowListener winl = new WindowAdapter()
                        {
                             public void windowClosing(WindowEvent e)
                             {
                                  System.out.println("Sayonara...");
                                 System.exit(0);
                             }
                        };
         this.addWindowListener(winl);
         this.getContentPane().add(scrollPane, BorderLayout.CENTER);
         this.pack();
         this.setVisible(true);
    }
   
    public void actionPerformed(ActionEvent e)
    {
    }
}

